package com.icloud.article.boot.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 评论附件表
 * </p>
 *
 * @author raymond
 * @since 0000-00-00
 */
@Getter
@Setter
@TableName("discuss_attachment")
@ApiModel(value = "DiscussAttachment对象", description = "评论附件表")
public class DiscussAttachment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("评论id")
    @TableField("discuss_id")
    private Long discussId;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("地址")
    @TableField("url")
    private String url;

    @ApiModelProperty("文件后缀，如：png")
    @TableField("postfix")
    private String postfix;

    @ApiModelProperty("是否删除，0:正常，1:删除")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;
}
